package cn.ss.exam2302.service;

import cn.ss.exam2302.entity.JsonResult;
import cn.ss.exam2302.entity.Paper;
import cn.ss.exam2302.entity.Score;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface PaperService {
    JsonResult query(Integer paId, String paPassword);
    void hand(Integer paId);
    List<Score> score();
    JsonResult add(Paper paper);
    List<Paper> queryAll();

    JsonResult upload(MultipartFile file, Integer paId) throws IOException;

    JsonResult setStatus(String status, Integer paId);

    JsonResult setPassword(String password, Integer paId);
}
